/*
 * @Author: LVGRAPE
 * @LastEditors: LVGRAPE
 */
#ifndef USART_CONFIGURATION_H
#define USART_CONFIGURATION_H
#ifdef __cplusplus
extern "C" {
#endif
#include "at32f4xx.h"
#include <stdbool.h>
	void USART1_Begin(uint32_t baudrate);
	void USART1_pintf_float(float f, u8 nfs);
	void usart_sendByte(uint8_t b);
	void usart_sendBytes(uint8_t* bs);
	uint16_t usart_sendNbytes(uint8_t* bytes, uint16_t len);
	char *myitoa(int num, char *str, int radix);
	void rt_kprintf(const char *format, ...);
	// extern bool rx1_flag;
#ifdef __cplusplus
}
#endif
#endif // !USART_CONFIGURATION_H
